package ch.pizzapp.kurier.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class PlaceResponceData implements Parcelable {

	@JsonProperty("response")
	PlaceDataList response;

	public PlaceDataList getResponse() {
		return response;
	}

	public void setResponse(PlaceDataList response) {
		this.response = response;
	}

	protected PlaceResponceData(Parcel in) {
		response = (PlaceDataList) in.readValue(PlaceDataList.class
				.getClassLoader());
	}

	public PlaceResponceData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeValue(response);
	}

	public static final Parcelable.Creator<PlaceResponceData> CREATOR = new Parcelable.Creator<PlaceResponceData>() {
		public PlaceResponceData createFromParcel(Parcel in) {
			return new PlaceResponceData(in);
		}

		public PlaceResponceData[] newArray(int size) {
			return new PlaceResponceData[size];
		}
	};
}